import koaRouter from 'koa-router';
import bodyParser from 'koa-bodyparser';
import response from '../middlewares/response.js';
import controller from '../controller';

const router = koaRouter();

router.use(response);
router.use(bodyParser());

// user
router.post('/login', controller.user.login);
router.get('/logout', controller.user.logout);

// test
router.get('/test', controller.test);

module.exports = router;
